home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / drdobbs / 1987 / 11 / stack.h < prev    next >
C/C++ Source or Header  |  1987-10-08  |  403b  |  17 lines

  1. /*
  2.     stack.h
  3.     
  4.     William May
  5.     2/20/87        created
  6. */
  7.  
  8. typedef int *STACK;
  9.  
  10. /* function prototypes */
  11. extern int         empty        ( STACK * );    /* is anything on the stack? */
  12. extern int         pop            ( STACK * );
  13. extern int         push         ( int, STACK *);
  14. extern STACK *    init_stack    ( int );
  15. extern void     del_stack    ( STACK ** );     /* remove stack */
  16. extern int         top_of_stack( STACK * );    /* returns top of stack */
  17.